#include <iostream>
using namespace std;
int main(){
	char ch;
	cin>>ch;
	int n;
	cin>>n;
	for(int i=1;i<=n;i++){
		cout<<ch;
	}
	return 0;
}
